// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "TetrisBlock.h"
#include "GameFramework/Actor.h"
#include "TetrisView.generated.h"
#define MAP_WIDTH 12
#define MAP_HIGHT 30

UCLASS()
class TETRIS_API ATetrisView : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	ATetrisView();

	TArray<ATetrisBlock*> BlockArray;
	int PosY;
	int PosX;
	float BlockSpacing;

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;
	void SetColor(int InNum,int InColor);
	FVector ChangeMapToWorldLocation(int index);
};
